package com.java.admin.service.serviceImpl;

import com.github.pagehelper.PageHelper;
import com.java.admin.dao.AdminMapper;
import com.java.admin.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
/**
 * @Description: 用户
 * @ClassName: AdminServiceInfo
 * @Author: 顾元伟
 * @Date: 2021/7/13
 * @Version: 1.0
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public List<Map<String, Object>> getAdminInfo(Integer pageNum, Integer pageSize) {
        //分页
        PageHelper.startPage(pageNum,pageSize);
        return adminMapper.getAdminInfo();
    }
}
